package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FxyFinancialSubjectMapper;
import com.ruoyi.system.domain.FxyFinancialSubject;
import com.ruoyi.system.service.IFxyFinancialSubjectService;

/**
 * 科目Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-13
 */
@Service
public class FxyFinancialSubjectServiceImpl implements IFxyFinancialSubjectService 
{
    @Autowired
    private FxyFinancialSubjectMapper fxyFinancialSubjectMapper;

    /**
     * 查询科目
     * 
     * @param id 科目主键
     * @return 科目
     */
    @Override
    public FxyFinancialSubject selectFxyFinancialSubjectById(Long id)
    {
        return fxyFinancialSubjectMapper.selectFxyFinancialSubjectById(id);
    }

    /**
     * 查询科目列表
     * 
     * @param fxyFinancialSubject 科目
     * @return 科目
     */
    @Override
    public List<FxyFinancialSubject> selectFxyFinancialSubjectList(Integer id)
    {
        return fxyFinancialSubjectMapper.selectFxyFinancialSubjectList(id);
    }

    /**
     * 新增科目
     * 
     * @param fxyFinancialSubject 科目
     * @return 结果
     */
    @Override
    public int insertFxyFinancialSubject(FxyFinancialSubject fxyFinancialSubject)
    {
        return fxyFinancialSubjectMapper.insertFxyFinancialSubject(fxyFinancialSubject);
    }

    /**
     * 修改科目
     * 
     * @param fxyFinancialSubject 科目
     * @return 结果
     */
    @Override
    public int updateFxyFinancialSubject(FxyFinancialSubject fxyFinancialSubject)
    {
        return fxyFinancialSubjectMapper.updateFxyFinancialSubject(fxyFinancialSubject);
    }

    /**
     * 批量删除科目
     * 
     * @param ids 需要删除的科目主键
     * @return 结果
     */
    @Override
    public int deleteFxyFinancialSubjectByIds(Long[] ids)
    {
        return fxyFinancialSubjectMapper.deleteFxyFinancialSubjectByIds(ids);
    }

    /**
     * 删除科目信息
     * 
     * @param id 科目主键
     * @return 结果
     */
    @Override
    public int deleteFxyFinancialSubjectById(Long id)
    {
        return fxyFinancialSubjectMapper.deleteFxyFinancialSubjectById(id);
    }
}
